import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.Graphics;
public class ImageManage
{
	public Image s_menuBgImage ;
	public Image s_inGameBgImage;
	public Image createNewImage(String imageName)
	{
		Image img =null;
		try
		{
			img = Image.createImage("/"+imageName);
		}
		catch(Exception e)
		{
			
		}
		return img;
	}
	
	public void setMenuBg(Image mb)
	{
		s_menuBgImage = mb;
	}
	
	public Image getMenuBg()
	{
		return s_menuBgImage;
	}
	
	public void drawMenuBg(Graphics g)
	{
		g.drawImage(s_menuBgImage,GameEngine.getScreenWidth()>>1, GameEngine.getScreenHeight()>>1,Graphics.HCENTER | Graphics.VCENTER) ;// s_menuBgImage.getWidth()>>1, s_menuBgImage.getHeight()>>1, Graphics.HCENTER | Graphics.VCENTER);
	}
	
	
	public Image getInGameBg()
	{
		return s_inGameBgImage;
	}
	
	
	public void setInGameBg(Image gb)
	{
		s_inGameBgImage = gb;
	}
	
	
	public void drawInGameBg(Graphics g)
	{
		g.drawImage(s_inGameBgImage,GameEngine.getScreenWidth()>>1, GameEngine.getScreenHeight()>>1,Graphics.HCENTER | Graphics.VCENTER) ;//// s_inGameBgImage.getWidth()>>1, s_inGameBgImage.getHeight()>>1, Graphics.HCENTER | Graphics.VCENTER);
	}
	
	
	
}